#pragma once

#include ".\pack.h"
#include ".\cmpp_base.h"
#include <vector>

using namespace std;

class SendInfo
{
public:
	SendInfo(unsigned int sendno);
	~SendInfo(void);
private:
	vector<Pack *> packlist;
public:
	unsigned int SendNo;
	void AddSubmit(Cmpp_Submit * sub);
	bool SMSSuc(unsigned int serialno, unsigned int * sendno, bool * isfinish);
	bool SMSErr(unsigned int serialno, unsigned int maxtrytimes, unsigned int * sendno, bool * isfinish);
	Cmpp_Submit * GetNeedSend(unsigned int retryspan);
	bool RestoreSubTime(unsigned int serialno);
	void RestoreSubTime();

};
